/********************************************************
 * created by lei.he on 2020/07/28 for
 ********************************************************/

//  引入数据库对象
const userinfoDB = require('../db/mongoConn')

// 新建一个用户信息描述文档
const userSchema = new userinfoDB.Schema({
    userId : String ,
    userName : String ,
    userPwd : String,
    state : String,
    userSex : String,
    userAddress : String,
    userPhoto : String,
    userTele : String,
    userEmail : String,
    userEntry : Date,
    userDept : String,
    userPosition : String,
    userRole : String,
    userRemark : String,
    userDate : Date,
})

module.exports = userinfoDB.model('userSchema',userSchema,'user_list')